package com.zdwl.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MainInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MainInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMaininfoidIsNull() {
            addCriterion("mainInfoId is null");
            return (Criteria) this;
        }

        public Criteria andMaininfoidIsNotNull() {
            addCriterion("mainInfoId is not null");
            return (Criteria) this;
        }

        public Criteria andMaininfoidEqualTo(String value) {
            addCriterion("mainInfoId =", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidNotEqualTo(String value) {
            addCriterion("mainInfoId <>", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidGreaterThan(String value) {
            addCriterion("mainInfoId >", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidGreaterThanOrEqualTo(String value) {
            addCriterion("mainInfoId >=", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidLessThan(String value) {
            addCriterion("mainInfoId <", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidLessThanOrEqualTo(String value) {
            addCriterion("mainInfoId <=", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidLike(String value) {
            addCriterion("mainInfoId like", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidNotLike(String value) {
            addCriterion("mainInfoId not like", value, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidIn(List<String> values) {
            addCriterion("mainInfoId in", values, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidNotIn(List<String> values) {
            addCriterion("mainInfoId not in", values, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidBetween(String value1, String value2) {
            addCriterion("mainInfoId between", value1, value2, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMaininfoidNotBetween(String value1, String value2) {
            addCriterion("mainInfoId not between", value1, value2, "maininfoid");
            return (Criteria) this;
        }

        public Criteria andMainnoIsNull() {
            addCriterion("mainNo is null");
            return (Criteria) this;
        }

        public Criteria andMainnoIsNotNull() {
            addCriterion("mainNo is not null");
            return (Criteria) this;
        }

        public Criteria andMainnoEqualTo(String value) {
            addCriterion("mainNo =", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoNotEqualTo(String value) {
            addCriterion("mainNo <>", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoGreaterThan(String value) {
            addCriterion("mainNo >", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoGreaterThanOrEqualTo(String value) {
            addCriterion("mainNo >=", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoLessThan(String value) {
            addCriterion("mainNo <", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoLessThanOrEqualTo(String value) {
            addCriterion("mainNo <=", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoLike(String value) {
            addCriterion("mainNo like", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoNotLike(String value) {
            addCriterion("mainNo not like", value, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoIn(List<String> values) {
            addCriterion("mainNo in", values, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoNotIn(List<String> values) {
            addCriterion("mainNo not in", values, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoBetween(String value1, String value2) {
            addCriterion("mainNo between", value1, value2, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnoNotBetween(String value1, String value2) {
            addCriterion("mainNo not between", value1, value2, "mainno");
            return (Criteria) this;
        }

        public Criteria andMainnameIsNull() {
            addCriterion("mainName is null");
            return (Criteria) this;
        }

        public Criteria andMainnameIsNotNull() {
            addCriterion("mainName is not null");
            return (Criteria) this;
        }

        public Criteria andMainnameEqualTo(String value) {
            addCriterion("mainName =", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameNotEqualTo(String value) {
            addCriterion("mainName <>", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameGreaterThan(String value) {
            addCriterion("mainName >", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameGreaterThanOrEqualTo(String value) {
            addCriterion("mainName >=", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameLessThan(String value) {
            addCriterion("mainName <", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameLessThanOrEqualTo(String value) {
            addCriterion("mainName <=", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameLike(String value) {
            addCriterion("mainName like", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameNotLike(String value) {
            addCriterion("mainName not like", value, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameIn(List<String> values) {
            addCriterion("mainName in", values, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameNotIn(List<String> values) {
            addCriterion("mainName not in", values, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameBetween(String value1, String value2) {
            addCriterion("mainName between", value1, value2, "mainname");
            return (Criteria) this;
        }

        public Criteria andMainnameNotBetween(String value1, String value2) {
            addCriterion("mainName not between", value1, value2, "mainname");
            return (Criteria) this;
        }

        public Criteria andShortnameIsNull() {
            addCriterion("shortName is null");
            return (Criteria) this;
        }

        public Criteria andShortnameIsNotNull() {
            addCriterion("shortName is not null");
            return (Criteria) this;
        }

        public Criteria andShortnameEqualTo(String value) {
            addCriterion("shortName =", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameNotEqualTo(String value) {
            addCriterion("shortName <>", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameGreaterThan(String value) {
            addCriterion("shortName >", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameGreaterThanOrEqualTo(String value) {
            addCriterion("shortName >=", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameLessThan(String value) {
            addCriterion("shortName <", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameLessThanOrEqualTo(String value) {
            addCriterion("shortName <=", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameLike(String value) {
            addCriterion("shortName like", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameNotLike(String value) {
            addCriterion("shortName not like", value, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameIn(List<String> values) {
            addCriterion("shortName in", values, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameNotIn(List<String> values) {
            addCriterion("shortName not in", values, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameBetween(String value1, String value2) {
            addCriterion("shortName between", value1, value2, "shortname");
            return (Criteria) this;
        }

        public Criteria andShortnameNotBetween(String value1, String value2) {
            addCriterion("shortName not between", value1, value2, "shortname");
            return (Criteria) this;
        }

        public Criteria andMaintypeIsNull() {
            addCriterion("mainType is null");
            return (Criteria) this;
        }

        public Criteria andMaintypeIsNotNull() {
            addCriterion("mainType is not null");
            return (Criteria) this;
        }

        public Criteria andMaintypeEqualTo(Integer value) {
            addCriterion("mainType =", value, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeNotEqualTo(Integer value) {
            addCriterion("mainType <>", value, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeGreaterThan(Integer value) {
            addCriterion("mainType >", value, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("mainType >=", value, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeLessThan(Integer value) {
            addCriterion("mainType <", value, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeLessThanOrEqualTo(Integer value) {
            addCriterion("mainType <=", value, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeIn(List<Integer> values) {
            addCriterion("mainType in", values, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeNotIn(List<Integer> values) {
            addCriterion("mainType not in", values, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeBetween(Integer value1, Integer value2) {
            addCriterion("mainType between", value1, value2, "maintype");
            return (Criteria) this;
        }

        public Criteria andMaintypeNotBetween(Integer value1, Integer value2) {
            addCriterion("mainType not between", value1, value2, "maintype");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1IsNull() {
            addCriterion("returnDepartment1 is null");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1IsNotNull() {
            addCriterion("returnDepartment1 is not null");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1EqualTo(Integer value) {
            addCriterion("returnDepartment1 =", value, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1NotEqualTo(Integer value) {
            addCriterion("returnDepartment1 <>", value, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1GreaterThan(Integer value) {
            addCriterion("returnDepartment1 >", value, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1GreaterThanOrEqualTo(Integer value) {
            addCriterion("returnDepartment1 >=", value, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1LessThan(Integer value) {
            addCriterion("returnDepartment1 <", value, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1LessThanOrEqualTo(Integer value) {
            addCriterion("returnDepartment1 <=", value, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1In(List<Integer> values) {
            addCriterion("returnDepartment1 in", values, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1NotIn(List<Integer> values) {
            addCriterion("returnDepartment1 not in", values, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1Between(Integer value1, Integer value2) {
            addCriterion("returnDepartment1 between", value1, value2, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment1NotBetween(Integer value1, Integer value2) {
            addCriterion("returnDepartment1 not between", value1, value2, "returndepartment1");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2IsNull() {
            addCriterion("returnDepartment2 is null");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2IsNotNull() {
            addCriterion("returnDepartment2 is not null");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2EqualTo(Integer value) {
            addCriterion("returnDepartment2 =", value, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2NotEqualTo(Integer value) {
            addCriterion("returnDepartment2 <>", value, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2GreaterThan(Integer value) {
            addCriterion("returnDepartment2 >", value, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2GreaterThanOrEqualTo(Integer value) {
            addCriterion("returnDepartment2 >=", value, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2LessThan(Integer value) {
            addCriterion("returnDepartment2 <", value, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2LessThanOrEqualTo(Integer value) {
            addCriterion("returnDepartment2 <=", value, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2In(List<Integer> values) {
            addCriterion("returnDepartment2 in", values, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2NotIn(List<Integer> values) {
            addCriterion("returnDepartment2 not in", values, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2Between(Integer value1, Integer value2) {
            addCriterion("returnDepartment2 between", value1, value2, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturndepartment2NotBetween(Integer value1, Integer value2) {
            addCriterion("returnDepartment2 not between", value1, value2, "returndepartment2");
            return (Criteria) this;
        }

        public Criteria andReturnks1IsNull() {
            addCriterion("returnKs1 is null");
            return (Criteria) this;
        }

        public Criteria andReturnks1IsNotNull() {
            addCriterion("returnKs1 is not null");
            return (Criteria) this;
        }

        public Criteria andReturnks1EqualTo(Integer value) {
            addCriterion("returnKs1 =", value, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1NotEqualTo(Integer value) {
            addCriterion("returnKs1 <>", value, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1GreaterThan(Integer value) {
            addCriterion("returnKs1 >", value, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1GreaterThanOrEqualTo(Integer value) {
            addCriterion("returnKs1 >=", value, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1LessThan(Integer value) {
            addCriterion("returnKs1 <", value, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1LessThanOrEqualTo(Integer value) {
            addCriterion("returnKs1 <=", value, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1In(List<Integer> values) {
            addCriterion("returnKs1 in", values, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1NotIn(List<Integer> values) {
            addCriterion("returnKs1 not in", values, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1Between(Integer value1, Integer value2) {
            addCriterion("returnKs1 between", value1, value2, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks1NotBetween(Integer value1, Integer value2) {
            addCriterion("returnKs1 not between", value1, value2, "returnks1");
            return (Criteria) this;
        }

        public Criteria andReturnks2IsNull() {
            addCriterion("returnKs2 is null");
            return (Criteria) this;
        }

        public Criteria andReturnks2IsNotNull() {
            addCriterion("returnKs2 is not null");
            return (Criteria) this;
        }

        public Criteria andReturnks2EqualTo(Integer value) {
            addCriterion("returnKs2 =", value, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2NotEqualTo(Integer value) {
            addCriterion("returnKs2 <>", value, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2GreaterThan(Integer value) {
            addCriterion("returnKs2 >", value, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2GreaterThanOrEqualTo(Integer value) {
            addCriterion("returnKs2 >=", value, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2LessThan(Integer value) {
            addCriterion("returnKs2 <", value, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2LessThanOrEqualTo(Integer value) {
            addCriterion("returnKs2 <=", value, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2In(List<Integer> values) {
            addCriterion("returnKs2 in", values, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2NotIn(List<Integer> values) {
            addCriterion("returnKs2 not in", values, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2Between(Integer value1, Integer value2) {
            addCriterion("returnKs2 between", value1, value2, "returnks2");
            return (Criteria) this;
        }

        public Criteria andReturnks2NotBetween(Integer value1, Integer value2) {
            addCriterion("returnKs2 not between", value1, value2, "returnks2");
            return (Criteria) this;
        }

        public Criteria andMainagentIsNull() {
            addCriterion("mainAgent is null");
            return (Criteria) this;
        }

        public Criteria andMainagentIsNotNull() {
            addCriterion("mainAgent is not null");
            return (Criteria) this;
        }

        public Criteria andMainagentEqualTo(String value) {
            addCriterion("mainAgent =", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentNotEqualTo(String value) {
            addCriterion("mainAgent <>", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentGreaterThan(String value) {
            addCriterion("mainAgent >", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentGreaterThanOrEqualTo(String value) {
            addCriterion("mainAgent >=", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentLessThan(String value) {
            addCriterion("mainAgent <", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentLessThanOrEqualTo(String value) {
            addCriterion("mainAgent <=", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentLike(String value) {
            addCriterion("mainAgent like", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentNotLike(String value) {
            addCriterion("mainAgent not like", value, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentIn(List<String> values) {
            addCriterion("mainAgent in", values, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentNotIn(List<String> values) {
            addCriterion("mainAgent not in", values, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentBetween(String value1, String value2) {
            addCriterion("mainAgent between", value1, value2, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainagentNotBetween(String value1, String value2) {
            addCriterion("mainAgent not between", value1, value2, "mainagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentIsNull() {
            addCriterion("mainLegalAgent is null");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentIsNotNull() {
            addCriterion("mainLegalAgent is not null");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentEqualTo(String value) {
            addCriterion("mainLegalAgent =", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentNotEqualTo(String value) {
            addCriterion("mainLegalAgent <>", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentGreaterThan(String value) {
            addCriterion("mainLegalAgent >", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentGreaterThanOrEqualTo(String value) {
            addCriterion("mainLegalAgent >=", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentLessThan(String value) {
            addCriterion("mainLegalAgent <", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentLessThanOrEqualTo(String value) {
            addCriterion("mainLegalAgent <=", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentLike(String value) {
            addCriterion("mainLegalAgent like", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentNotLike(String value) {
            addCriterion("mainLegalAgent not like", value, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentIn(List<String> values) {
            addCriterion("mainLegalAgent in", values, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentNotIn(List<String> values) {
            addCriterion("mainLegalAgent not in", values, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentBetween(String value1, String value2) {
            addCriterion("mainLegalAgent between", value1, value2, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andMainlegalagentNotBetween(String value1, String value2) {
            addCriterion("mainLegalAgent not between", value1, value2, "mainlegalagent");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalIsNull() {
            addCriterion("registeredCapital is null");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalIsNotNull() {
            addCriterion("registeredCapital is not null");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalEqualTo(String value) {
            addCriterion("registeredCapital =", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalNotEqualTo(String value) {
            addCriterion("registeredCapital <>", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalGreaterThan(String value) {
            addCriterion("registeredCapital >", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalGreaterThanOrEqualTo(String value) {
            addCriterion("registeredCapital >=", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalLessThan(String value) {
            addCriterion("registeredCapital <", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalLessThanOrEqualTo(String value) {
            addCriterion("registeredCapital <=", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalLike(String value) {
            addCriterion("registeredCapital like", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalNotLike(String value) {
            addCriterion("registeredCapital not like", value, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalIn(List<String> values) {
            addCriterion("registeredCapital in", values, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalNotIn(List<String> values) {
            addCriterion("registeredCapital not in", values, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalBetween(String value1, String value2) {
            addCriterion("registeredCapital between", value1, value2, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteredcapitalNotBetween(String value1, String value2) {
            addCriterion("registeredCapital not between", value1, value2, "registeredcapital");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressIsNull() {
            addCriterion("registerAddress is null");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressIsNotNull() {
            addCriterion("registerAddress is not null");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressEqualTo(String value) {
            addCriterion("registerAddress =", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressNotEqualTo(String value) {
            addCriterion("registerAddress <>", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressGreaterThan(String value) {
            addCriterion("registerAddress >", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressGreaterThanOrEqualTo(String value) {
            addCriterion("registerAddress >=", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressLessThan(String value) {
            addCriterion("registerAddress <", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressLessThanOrEqualTo(String value) {
            addCriterion("registerAddress <=", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressLike(String value) {
            addCriterion("registerAddress like", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressNotLike(String value) {
            addCriterion("registerAddress not like", value, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressIn(List<String> values) {
            addCriterion("registerAddress in", values, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressNotIn(List<String> values) {
            addCriterion("registerAddress not in", values, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressBetween(String value1, String value2) {
            addCriterion("registerAddress between", value1, value2, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRegisteraddressNotBetween(String value1, String value2) {
            addCriterion("registerAddress not between", value1, value2, "registeraddress");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andAreaIsNull() {
            addCriterion("area is null");
            return (Criteria) this;
        }

        public Criteria andAreaIsNotNull() {
            addCriterion("area is not null");
            return (Criteria) this;
        }

        public Criteria andAreaEqualTo(Integer value) {
            addCriterion("area =", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotEqualTo(Integer value) {
            addCriterion("area <>", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaGreaterThan(Integer value) {
            addCriterion("area >", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaGreaterThanOrEqualTo(Integer value) {
            addCriterion("area >=", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaLessThan(Integer value) {
            addCriterion("area <", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaLessThanOrEqualTo(Integer value) {
            addCriterion("area <=", value, "area");
            return (Criteria) this;
        }

        public Criteria andAreaIn(List<Integer> values) {
            addCriterion("area in", values, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotIn(List<Integer> values) {
            addCriterion("area not in", values, "area");
            return (Criteria) this;
        }

        public Criteria andAreaBetween(Integer value1, Integer value2) {
            addCriterion("area between", value1, value2, "area");
            return (Criteria) this;
        }

        public Criteria andAreaNotBetween(Integer value1, Integer value2) {
            addCriterion("area not between", value1, value2, "area");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andDelstateIsNull() {
            addCriterion("delState is null");
            return (Criteria) this;
        }

        public Criteria andDelstateIsNotNull() {
            addCriterion("delState is not null");
            return (Criteria) this;
        }

        public Criteria andDelstateEqualTo(Integer value) {
            addCriterion("delState =", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateNotEqualTo(Integer value) {
            addCriterion("delState <>", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateGreaterThan(Integer value) {
            addCriterion("delState >", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("delState >=", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateLessThan(Integer value) {
            addCriterion("delState <", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateLessThanOrEqualTo(Integer value) {
            addCriterion("delState <=", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateIn(List<Integer> values) {
            addCriterion("delState in", values, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateNotIn(List<Integer> values) {
            addCriterion("delState not in", values, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateBetween(Integer value1, Integer value2) {
            addCriterion("delState between", value1, value2, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateNotBetween(Integer value1, Integer value2) {
            addCriterion("delState not between", value1, value2, "delstate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}